<div class="sidebarl">
<ul>
	<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>
	<li>
	  <h2><? _e('Blog Lounge'); ?></h2>
	  <ul>
	    <li><a href="feed:<?php bloginfo('rss2_url'); ?>">Subscribe Now</a></li>
         <li><a href="mailto:<?php the_author_email(); ?>">
	<?php _e('Contact');?></a></li>
		 <li><?php include (TEMPLATEPATH . '/searchform.php'); ?></li>
      </ul>
    </li>
  <li>&nbsp; </li>
  <li>
	  <h2><? _e('Categories'); ?></h2>
      <ul>
     <?php wp_list_cats('optioncount=1&hierarchical=0');    ?>
      </ul>
    </li>
  <li>
 <h2><? _e('Archives'); ?></h2>
      <ul>
        <?php wp_get_archives('type=monthly'); ?>
      </ul>
    </li>
  <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
  <?php 
//wp_list_bookmarks();
 ?>
  
  <li>
 <h2><? _e('Meta'); ?></h2>
      <ul>
	  <?php wp_register(); ?>
        <li>
          <?php wp_loginout(); ?>
        </li>
	    
	    <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
	<li>
	 <a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a>
	</li>
        <?php wp_meta(); ?>
      </ul>
                  </li>
  <?php } ?>
    <?php endif; ?>
</ul>
</div>
